<?php
/**
 * 银行卡管理
 */
defined('InTuntronKJ') or exit('Access Invalid!');

class bankModel extends Model {
	
	public function __construct(){
        parent::__construct('member_bank');
    }
    
    /**
     * 
     * 会员绑定银行卡详细信息
     */
    public function getPaymentInfo($condition, $field = '*'){
    	return $this->field($field)->where($condition)->find();
    }
	
    
	/**
	 * 添加会员绑定银行卡
	 * @param unknown_type $param
	 */
    public function addPayment($param){
        return $this->insert($param);
    }
    
  
    /**
     * 获取银行列表
     * 
     */
    public function getBankList(){
    	return $this->table('bank_list')->select();
    }
    
    
    /**
     * 获取银行详细信息
     * 
     */
    public function getBankInfo($condition, $field = '*'){
    	return $this->table('bank_list')->where($condition)->find();
    }
}